<?php
class ProductCategoryMappingViewModel extends ViewModel{
	public $viewFields = array(
		'Category'=>array('category_name','_as'=>'cate'),
		'ProductCategoryMapping'=>array('category_id','product_id','_as'=>'prdMapping', '_on' => 'prdMapping.category_id=cate.id'),
		'Product'=>array('id'=>'pid', 'product_name','product_no','description','original_price','discount','current_price','pic','_on'=>'prdMapping.product_id=prd.id','_order'=>'prd.pid','_as'=>'prd'),
	);
}

?>